﻿using BLL;
using IBLL;
using kang.Entitys.IdentityAuthentication;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using webMvc.Models.ViewModel;

namespace webMvc.Controllers
{
	public class MenusController : BaseController
	{
		IActionInfoService actionInfoService = new ActionInfoService();

		public ActionResult menu()
		{
			//获取当前的用户所拥有的权限菜单(在用户权限关联表中关联),然后进行一个输出
			return View();
		}

		public ActionResult MenuManage()
		{
			return View();
		}
		public JsonResult AllMenuData()
		{
			var MenuList = actionInfoService.LoadEntities(x => true).ToList();
			return Json(MenuList, JsonRequestBehavior.AllowGet);
		}

		public JsonResult GetRoleMenu()
		{
			var actionList = actionInfoService.LoadEntities(x => true).ToList();
			return Json(actionList);
		}
	}
}